<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>项目列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/templates/act/process-xl.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<p style="font-size: 14px;font-weight: bold;">
    <span>流程当前办理阶段:</span>
    <span class="stage" style="color: #0000FF"></span>
</p>
<h1 style="text-align: center;margin:10px 0;">
    勘察报告人员信息表
</h1>
<form class="layui-form layui-form-pane" action="" lay-filter="example">
    <div class="layui-form-item">
        <label class="layui-form-label">项目负责人</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" name="kcProjectLeaderName" readonly>
        </div>
        <label class="layui-form-label" style="width:118px;">注册职业资格</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" name="kcLeaderRegisterQualification" readonly>
        </div>
        <label class="layui-form-label">证书编号</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" name="kcLeaderCerNum" readonly>
        </div>
    </div>
</form>
<table class="layui-hide" id="dataList" lay-filter="dataList"></table>


<script type="text/javascript" src="/lib/layui/layui.js"></script>
<script src="/static/js/main.js"></script>
<script>
    var configureCom = {};
    layui.use(['jquery', 'configureCom', 'configure', 'sessionFun', 'table', 'matchDict', 'form'], function () {
        var $ = layui.jquery;
        var configure = layui.configure;
        var table = layui.table;
        var sessionFun = layui.sessionFun;
        var matchDict = layui.matchDict;
        var form = layui.form;
        configureCom = layui.configureCom;
        var stage = sessionFun.get(configure.SESSION_PROJECT_WAIT_LIST_DATA);
        $('.stage').html(stage.taskDefName);
        var listData = sessionFun.get(configure.SESSION_PROJECT_WAIT_LIST_DATA);
        form.val('example', listData);
        var cols = [[
            {type: 'checkbox'},
            {
                field: 'roleType', title: '工程担任角色', templet: function (d) {
                    var roleCode = configure.KCDRJS;
                    return '<p>' + matchDict.name(d.roleType, roleCode) + '</p>';
                }
            },
            {
                field: 'specialtyId', title: '所属专业', templet: function (d) {
                    return '<p>' + matchDict.name(d.specialtyId, configure.KC_SPE) + '</p>';
                }
            },
            {
                field: 'userName', title: '人员姓名'
            }, {
                field: 'qualificationCertificateName', title: '人员证书信息', templet: function (d) {
                    return '<p>' + d.qualificationCertificateName + '</p><p>(证书编号' + d.qualificationCertificateNum + ')</p>';
                }
            }, {
                field: 'linkPhone', title: '联系电话'
            }
        ]];
        configureCom.tableRender(configure.PRJ_REPORT_LIST_HTTP, {
            orgType: configure.KC_CODE,
            decId: listData.decId
        }, cols, 'dataList', 10, 'full-200');

        //监听搜索
        configureCom.tableSearch();
    });
</script>
</body>
</html>